package com.gitee.wsl.mathematics.function.noise.d3

import com.gitee.wsl.mathematics.function.noise.Noise3d

class LayeredNoise3d : Noise3d {
    val layers = mutableListOf<Noise3d>()

    override fun eval(x: Float, y: Float, z: Float): Float {
        var result = 0f
        for (i in layers.indices) {
            result += layers[i].eval(x, y, z)
        }
        return result
    }
}